<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 14318
  Date: 2021/12/3
  Time: 21:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/delete" method="post">

    <table width="200px" border="1px">
        <tr>
            <td>选择</td>
            <td>用户名</td>
        </tr>
       <c:forEach items="${list}" var="student">
        <tr>
            <td><input type="checkbox" name="ids" value="${student.id}"></td>
            <td>${student.username}</td>

        </tr>
       </c:forEach>


<%--        <tr>--%>
<%--            <td><input type="checkbox" name="ids" value="1"> </td>--%>
<%--            <td>李红</td>--%>
<%--        </tr>--%>
<%--        <tr>--%>
<%--            <td><input type="checkbox" name="ids" value="2"></td>--%>
<%--            <td>张强</td>--%>
<%--        </tr>--%>
<%--        <tr>--%>
<%--            <td><input type="checkbox" name="ids" value="3"></td>--%>
<%--            <td>赵力</td>--%>
<%--        </tr>--%>
    </table>
    <input type="submit" value="删除">
</form>
</body>
</html>
